<template>
	<view class="conter">
		<!-- <login v-if="true"></login> -->



		<view class="header_nav">

			<view class="header-title flex-box">
				<navigator url="/pages/tab/home" class="" style="margin-left: 50rpx;">
					<u-icon name="arrow-left"></u-icon>
				</navigator>
				<view class="">
					今日新增
				</view>
				<view class="">
				</view>
			</view>
			<view class="header_tlt">
				<view class="header-bgc">
					<view class="bgc">
						<view class="" style="width: 60rpx; height: 60rpx; margin: auto; ">
							<image src="../../static/index/download.png" mode=""></image>
						</view>
					</view>
					<view class="text-size">入库单：{{ pustStoack ? pustStoack : 0 }}</view>
				</view>
				<view class="">
					<view class="header-bgc">
						<view class="bgc">
							<view class="" style="width: 60rpx; height: 60rpx; margin: auto; ">
								<image src="../../static/index/upload.png" mode=""></image>
							</view>
						</view>
						<view class="text-size">出库单：{{ back_store ? back_store : 0 }}</view>
					</view>
				</view>
			</view>
		</view>

		<!-- 宫格 -->
		<view class="nav">
			<view class="nav-text" style="display: flex;">
				<navigator url="/pages/putStock/index" class="nav-left"
					style="margin-right: 30rpx; background-color: #1AC1EC;">
					<view class="nav-image">
						<image src="../../static/index/put.png" mode=""></image>
					</view>
					<view class="mtop-text">入库</view>
				</navigator>
				<navigator url="/pages/removeStock/index" class="nav-left" style="background-color: #20E4BD;">
					<view class="nav-image">
						<image src="../../static/index/stock.png" mode=""></image>
					</view>
					<view class="mtop-text">出库</view>
				</navigator>
			</view>
			<view class="nav-text" style="display: flex;">
				<navigator url="/pages/stock/index" class="nav-left"
					style="margin-right: 30rpx; background-color: #70A2FF;">
					<view class="nav-image">
						<image src="../../static/index/check.png" mode=""></image>
					</view>
					<view class="mtop-text">盘点</view>
				</navigator>
				<!-- :url="'?tilte=' + tilte " hover-class="navigator-hover" -->
				<navigator url="/pages/contact/index" class="nav-left" hover-class="navigator-hover"
					style="background-color: #8B6DFF;">
					<view class="nav-image">
						<image src="../../static/index/laiwang.png" mode=""></image>
					</view>
					<view class="mtop-text">往来单位</view>
				</navigator>
			</view>
			<view class="nav-text" style="display: flex;">
				<navigator url="/pages/warehouse/index" hover-class="navigator-hover" class="nav-left"
					style="margin-right: 30rpx; background-color: #F79AC4;">
					<view class="nav-image">
						<image src="../../static/index/warehouse.png" mode=""></image>
					</view>
					<view class="mtop-text">仓库管理</view>
				</navigator>
				<!-- <navigator url="/pages/shopping/index" class="nav-left" hover-class="navigator-hover" style="background-color: #8B6DFF;">
					<view class="nav-image"><image src="../../static/index/laiwang.png" mode=""></image></view>
					<view class="mtop-text">商品</view>
				</navigator> -->
				<navigator url="/pages/shopping/class" class="nav-left" hover-class="navigator-hover"
					style="background-color: #8B6DFF;">
					<view class="nav-image">
						<image src="../../static/index/laiwang.png" mode=""></image>
					</view>
					<view class="mtop-text">商品</view>
				</navigator>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				tilte: '往来单位',
				pustStoack: '',
				back_store: '',
			};
		},
		onLoad() {
			this.getList();
		},
		onShow() {},
		methods: {
			goFile(url) {
				console.log(url + '');
				uni.navigateTo({
					url: 'url',
				});
			},

			async getList() {
				const {
					data: res
				} = await this.$u.post('api/jinxiao.Index/index');
				this.pustStoack = res.enter_store;
				this.back_store = res.back_store;
			},
		},
	};
</script>

<style lang="scss" scoped>
	.conter {
		color: #ffffff;
		// padding-top: 60rpx;
		padding-bottom: 100rpx;

		image {
			width: 100%;
			height: 100%;
		}

		.header_nav {
			width: 100%;
			height: 488rpx;
			padding-top: 100rpx;
			background: linear-gradient(to right, #656ce6, #9397fc);

			.header-title {
				color: #ffffff;
				text-align: center;
				font-size: 36rpx;
				font-family: PingFang SC;
				font-weight: 500;
				margin-bottom: 40rpx;
			}

			.header_tlt {
				width: 100%;
				height: 200rpx;
				display: flex;
				justify-content: space-around;

				.header-bgc {
					text-align: center;
				}

				.bgc {
					width: 120rpx;
					height: 120rpx;
					border-radius: 50%;
					background: #8d92fa;
					display: flex;
					justify-content: center;
					align-items: center;
				}

				.text-size {
					margin-top: 40rpx;
				}
			}
		}

		.nav {
			width: 100%;
			padding: 30rpx;
			background-color: #f8f9ff;

			.nav-text {
				margin-bottom: 30rpx;

				.nav-left {
					width: 330rpx;
					height: 330rpx;
					padding-top: 68rpx;
					justify-content: center;
					align-items: center;
					text-align: center;
					border-radius: 10rpx;

					.nav-image {
						width: 114rpx;
						height: 114rpx;
						margin: 0 auto;
					}
				}

				.mtop-text {
					margin-top: 16rpx;
					font-size: 38rpx;
					font-family: PingFang SC;
					font-weight: 500;
				}
			}
		}
	}
</style>
